package com.ehotting.edsta.reliability.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "request")
public class BaseProperties {

    private String url;
    /**
     * 超时配置，单位：秒
     */
    private Integer timeout;

    /**
     * 单位：秒
     */
    private Integer waitFor;

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getWaitFor() {
        return waitFor;
    }

    public void setWaitFor(Integer waitFor) {
        this.waitFor = waitFor;
    }
}
